package com.ym.b2b.tags;

import org.springframework.beans.factory.annotation.Autowired;

import com.ym.b2b.product.service.EmBProductTypeService;
import com.ym.b2b.product.sqlbean.EmBProductType;
import com.ym.b2b.tags.base.BaseTag;
import com.zc.commons.base.Result;

/**
 * @ClassName: ProductCategoryTags
 * @Description:当前位置标签
 * @Author 竺夏军
 * @Date 2015年1月28日 上午12:03:23
 * @Modify
 * @CopyRight 信息化团队
 */
public class NowPathTags extends BaseTag {

    private static final long     serialVersionUID = 895777383599438520L;

    @Autowired
    private EmBProductTypeService emBProductTypeService;

    public int doStartTag() {
        Result ret = new Result();

        ret.putData("type", emBProductTypeService.searchEmBProductType(new EmBProductType()));
        getPageContext().getRequest().setAttribute("result", ret);
        return EVAL_BODY_INCLUDE;
    }
}
